﻿
using System.Collections.Generic;
namespace Sustainalytics.ClientDW.Entities
{
    public class GCPillarTemplate : IEqualityComparer<GCPillarTemplate>
    {
        public int Id { get; set; }
        public string Name { get; set; }

        public bool Equals(GCPillarTemplate x, GCPillarTemplate y)
        {
            if (x == null && y == null)
                return true;

            if (x == null || y == null)
                return false;

            return
                x.Id == y.Id
                && x.Name == y.Name;
        }

        public int GetHashCode(GCPillarTemplate obj)
        {
            return this.Id.GetHashCode();
        }
    }
}
